package com.starlink.model.dtomapper;

import com.starlink.model.domain.MallPeripheryOrderDetailsDO;
import com.starlink.model.request.MallPeripheryOrderDetailsRequest;
import com.starlink.model.vo.MallPeripheryOrderDetailsVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author zhanghong
 */
@Mapper(componentModel = "spring")
public interface MallPeripheryOrderDetailsDtoMapper {

    MallPeripheryOrderDetailsDtoMapper INSTANCE = Mappers.getMapper(MallPeripheryOrderDetailsDtoMapper.class);

    /**
    * DO to VO
    * @param mallPeripheryOrderDetailsDO
    * @return
    */
    MallPeripheryOrderDetailsVO do2VO(MallPeripheryOrderDetailsDO mallPeripheryOrderDetailsDO);

    /**
     * request to DO
     * @param request
     * @return
     */
    MallPeripheryOrderDetailsDO request2DO(MallPeripheryOrderDetailsRequest request);
}
